<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}

			html {
				height: 100%;
			}

			body {
				width: 60%;
				height: 60%;
				border: 1px solid;
				margin: 100px auto 0;
			}

			#test {
				width: 100px;
				height: 100px;
				background: pink;
				text-align: center;
				font: 30px/100px "微软雅黑";

				/*display: block;*/

				position: absolute;
				left: 0;
				right: 0;
				bottom: 0;
				top: 0;
				margin: auto;

				transition-property: width;
				transition-duration: 2s;
				transition-timing-function: linear;
				/* transition-delay: 3s; */
			}

			body:hover #test {
				transition-property: height;
				width: 200px;
				height: 200px;
			}
		</style>
	</head>
	<body>
		<div id="test">

		</div>
		<!-- <script type="text/javascript">
			window.onload = function() {
				var testNode = document.querySelector("#test");
				var bodyNode = document.querySelector("body");
				bodyNode.onmouseover = function() {
					testNode.style.width = "300px";
				}
				testNode.addEventListener("transitionend", function(){
					alert("over");
				})
			}
		</script> -->
	</body>
</html>
